package com.example.svntest;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}
	//	それぞれのアクティビティを起動する
	public void onClick(View view) {
		Class<?> cls = null;
		switch (view.getId()) {
			case R.id.imamura:
				cls = com.example.svntest.ImamuraActivity.class;
				break;
			case R.id.tabata:
				cls = com.example.svntest.TabataActivity.class;
				break;
			case R.id.nishimura:
				cls = com.example.svntest.NishimuraActivity.class;
				break;
			case R.id.morita:
				cls = com.example.svntest.MoritaActivity.class;
				break;
		}
		if (cls != null) {
			Intent i = new Intent(this, cls);
			startActivity(i);
		}
	}
}
